Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: try increasing file descriptor soft limit for service at start #24

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

yangby-cryptape
Copy link
Contributor

Motivation

Resolve #23.

How to test?

First, set the soft limit and hard limit with different values:

ulimit -Sn 1024
sudo ulimit -Hn 65536

then run ckb-bitcoin-spv-service serve -v ..., the log outputs will contain the following message:

[2024-04-10THH:MM:SSZ INFO  ckb_bitcoin_spv_service::utilities::platform] raise file descriptor resource limit from 1024 to 65536

@yangby-cryptape yangby-cryptape marked this pull request as ready for review April 11, 2024 00:00
@yangby-cryptape yangby-cryptape added this pull request to the merge queue Apr 11, 2024
Merged via the queue into master with commit b17edc5 Apr 11, 2024
5 checks passed
@yangby-cryptape yangby-cryptape deleted the feature/increase-fd-soft-limit branch April 11, 2024 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Raise soft open file descriptors limit to the hard limit in service.
2 participants